class:class_dir
	javac Document.java Feature.java FreqDistUtil.java TextDocument.java DocumentTester.java FreqData.java FrequencyFeature.java FileUtil.java *FeatureCreator.java *Feature.java TextDocumentData.java WekaFeatureManager.java AuthorClassifier.java AuthorNameFilter.java -cp weka.jar:stanford-postagger.jar:stemming.jar:xstream.jar:xpp3.jar -d classes

class_dir:
	mkdir -p classes

test:class
	java -cp weka.jar:stanford-postagger.jar:stemming.jar:classes/ nlp.DocumentTester test/testDoc.txt postag.model dumps/mood_list.txt dumps/stopwords.txt ./tfiaf_out.txt

classify:class
	java -cp weka.jar:stanford-postagger.jar:stemming.jar:xstream.jar:xpp3.jar:classes/ nlp.AuthorClassifier test/train.txt test/test.txt

copy:class_dir
	cp stanford-postagger.jar stemming.jar weka.jar xpp3.jar xstream.jar classes
	cd classes
	jar xvf stanford-postagger.jar
	jar xvf stemming.jar
	jar xvf weka.jar
	jar xvf xpp3.jar
	jar xvf xstream.jar
	cd ../

clean:
	#rm -rf classes/
